package cn.xiaobai.domain;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 面板功能提示信息
 *
 * @author yangdaji
 * @date 2022/11/02
 */
@Data
@Accessors(chain = true)
public class Message {
    /**
     * 序号
     */
    private Integer number;
    /**
     * 提示信息
     */
    private String message;

    @Override
    public String toString() {
        if (number == null) {
            return message + "\n";
        }
        return number + ": " + message + "\n";
    }

}